package cn.wei.myblog.service.impl;

import cn.wei.myblog.domain.entity.BlogArticle;
import cn.wei.myblog.mapper.BlogArticleMapper;
import cn.wei.myblog.service.IBlogArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogArticleServiceImpl implements IBlogArticleService {
    @Autowired
    private BlogArticleMapper blogArticleMapper;

    @Override
    public BlogArticle selectArticleById(Long articleId) {
        return blogArticleMapper.selectArticleById(articleId);
    }

    @Override
    public int insertArticle(BlogArticle article) {
        return blogArticleMapper.insertArticle(article);
    }

    @Override
    public List<BlogArticle> selectArticleList(BlogArticle blogArticle) {
        return blogArticleMapper.selectArticleList(blogArticle);
    }
}
